﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegisterCandidate.aspx.cs"
    Inherits="OVS.RegisterCandidate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="~/OVS.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="ScrollablePanel" runat="server" Style="overflow-x: hidden; overflow-y: auto;
        text-align: center; width: 100%; padding-right: 2px;">
        <div>
            <center>
                <asp:Label ID="lblMsg" runat="server" CssClass="message"></asp:Label>
                <asp:Label ID="lblErrMsg" runat="server" CssClass="error"></asp:Label>
                <asp:ValidationSummary ID="vsmErrors" runat="server" CssClass="summarymessage" Style="text-align: left;
                    width: 20%" />
                    
                    <div>
                    <asp:Label ID="Label6" runat="server" CssClass="ParaTitle">Add/Update Candidate </asp:Label>
                    </div>
                    
                <table  cellpadding="2" cellspacing="2">                    
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Label ID="Label8" runat="server" CssClass="label">Voter ID </asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtVoterId" CssClass="textfield" runat="server"></asp:TextBox>
                            <asp:Button ID="btnSearch" CausesValidation="false" Text="Search" runat="server"
                                ValidationGroup="Search" OnClick="btnSearch_Click" />
                            <span id="Span8" runat="Server" class="labelRequiredField">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtVoterId"
                                ErrorMessage="Please enter VoterId" ValidationGroup="Search">&nbsp;</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label2" runat="server" CssClass="label">Photo </asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:Label ID="Label3" runat="server" CssClass="label">Other Details </asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div id="Div1" style="width:100%;height:100%" runat="server">
                                <asp:Image Width="100px" Height="100px" ID="imgVoterPhoto"  runat="server" Visible="false" />
                            </div>
                        </td>
                        <td colspan="2">
                            <div id="divResult" style="margin: 0px 10px 10px 10px;">
                                <div runat="server" id="divControls">
                                    <OVSControl:SectionHeaderPlain ID="SearchRes" runat="server" SectionTitle="Voter Details" />
                                    <div id="divGrid" style="border: solid 1px silver; height: 200px; text-align: center;
                                        overflow-x: hidden; overflow-y: auto;">
                                        <asp:GridView ID="gvResults" AutoGenerateColumns="true" BorderColor="Black" runat="server"
                                            AllowPaging="true" AllowSorting="true">
                                            <HeaderStyle BackColor="White" Font-Size="10px" ForeColor="#990000" BorderStyle="None" />
                                            <RowStyle BackColor="#F7F3F7" Font-Names="Verdana" Font-Size="XX-Small" BorderStyle="None" />
                                            <AlternatingRowStyle BackColor="White" Font-Names="Verdana" Font-Size="XX-Small"
                                                BorderStyle="None" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <hr />
                        </td>
                    </tr>
                    <tr>
                        <td >
                              <asp:Label ID="Label5" runat="server" CssClass="label">Symbol</asp:Label>
                        </td>
                        <td colspan="2">
                              <asp:Label ID="Label4" runat="server" CssClass="label">Constituency Details </asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td rowspan="4">
                             <div id="showPhoto" runat="server">
                                <asp:Image ID="imgSymbol" Width="100px" Height="100px"  runat="server" Visible="false" />
                            </div>
                        </td>
                        <td colspan="3">
                            <OVSControl:SelectWard ID="SelectWard" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <hr />
                        </td>
                    </tr>
                    <tr>
                        
                        <td>
                            <asp:Label ID="Label1" runat="server" CssClass="label">Party </asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtParty" CssClass="textfield" runat="server"></asp:TextBox>
                            <span id="Span1" runat="Server" class="labelRequiredField">*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtVoterId"
                                ErrorMessage="Please enter Party">&nbsp;</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label9" runat="server" CssClass="label">Symbol </asp:Label>
                        </td>
                        <td>
                           
                            <asp:FileUpload ID="upSymbol" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnSave" value="Save" Text="Save" OnClick="btnSave_Click" runat="server">
                            </asp:Button>
                            <asp:Button ID="btnReset" value="Reset" Text="Reset" runat="server"></asp:Button>
                            <asp:HiddenField ID="hidCandidateId" runat="server" />
                        </td>
                    </tr>
                </table>
            </center>
        </div>
    </asp:Panel>
    </form>
</body>
</html>
